package com.jx.driving.request;

import com.jx.driving.message.TimeTerminalRequestMessage;
import com.jx.driving.protocol.terminal.annotation.DwordAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 临时位置跟踪控制
 * 
 * @author shenliuyang
 *
 *         2016年8月14日下午4:01:28
 */
@TerminalAnnotation
public class Terminal0x8202Request extends TimeTerminalRequestMessage {

    @WordAnnotation(order = 1)
    private int interval;// 时间间隔
    @DwordAnnotation(order = 2)
    private long duration;// 跟踪有效期

    public int getInterval() {
	return interval;
    }

    public void setInterval(int interval) {
	this.interval = interval;
    }

    public long getDuration() {
	return duration;
    }

    public void setDuration(long duration) {
	this.duration = duration;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x8202Request [interval=").append(interval).append(", duration=").append(duration)
		.append("]");
	return builder.toString();
    }

}
